﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Data.Entity;
using Top.Api.Domain;
using AscentTopLibrary;

namespace AscentExplorer.Web.Areas.TaobaoKong.Controllers
{
    public class HomeController : Controller
    {
        //
        // GET: /TaobaoKong/Home/

        public ActionResult Index()
        {
            List<Item> items = null;
            using(var db = new TopDbContext("TopDbContext"))
            {
                items = db.Items.ToList<Item>();
            }
            return View(items);
        }
    }
}
